const GET = "GET"
const POST = "POST"
const urlMap = {
  register: {
    url:'/api/users/register',
    type: POST
  },
  login: {
    url:'/api/users/login',
    type: POST
  },
  findUserName: {
    url:'/api/users/findUserName',
    type: POST
  },
  getDetails: {
    url:'/api/product/getDetails',
    type: POST
  },
  getDetailsPicture: {
    url:'/api/product/getDetailsPicture',
    type: POST
  },
  getCategory: {
    url:'/api/product/getCategory',
    type: POST
  },
  getAllProduct: {
    url:'/api/product/getAllProduct',
    type: POST
  },
  getProductByCategory: {
    url:'/api/product/getProductByCategory',
    type: POST
  },
  getProductBySearch: {
    url:'/api/product/getProductBySearch',
    type: POST
  },
  getHotProduct: {
    url:'/api/product/getHotProduct',
    type: POST
  },
  getPromoProduct: {
    url:'/api/product/getPromoProduct',
    type: POST
  },
  getCollect: {
    url:'/api/user/collect/getCollect',
    type: POST
  },
  addCollect: {
    url:'/api/user/collect/addCollect',
    type: POST
  },
  deleteCollect: {
    url:'/api/user/collect/deleteCollect',
    type: POST
  },
  getOrder: {
    url:'/api/user/order/getOrder',
    type: POST
  },
  addOrder: {
    url:'/api/user/order/addOrder',
    type: POST
  },
  getShoppingCart: {
    url:'/api/user/shoppingCart/getShoppingCart',
    type: POST
  },
  addShoppingCart: {
    url:'/api/user/shoppingCart/addShoppingCart',
    type: POST
  },
  updateShoppingCart: {
    url:'/api/user/shoppingCart/updateShoppingCart',
    type: POST
  },
  deleteShoppingCart: {
    url:'/api/user/shoppingCart/deleteShoppingCart',
    type: POST
  },
  carousel: {
    url:'/api/resources/carousel',
    type: POST
  },
  README: {
    url:'/api/public/docs/README.md',
    type: GET
  }
}

export default urlMap;